<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="vue.js"></script>

</head>

<body style="height:3000px">
  <div id="app">
    <button @click="fetchData">请求数据</button>
  </div>
  <script>
    new Vue({
      el: "#app",
      data:{
        isShow:true
      },
      methods:{
        fetchData(){
          fetch("https://m.maizuo.com/gateway?cityId=440300&pageNum=1&pageSize=10&type=1&k=3662799",{
            headers:{
              "X-Client-Info":'{"a":"3000","ch":"1002","v":"5.0.4","e":"15765528645424543695078"}',
              "X-Host":"mall.film-ticket.film.list"
            },
            methods:"GET"
          }).then(res=>{
            return res.json();
          }).then(res=>{
            console.log(res);
          });
        }
      }
    })
  </script>
</body>

</html>